import sys
from PyQt5.QtWidgets import QApplication
from qt_material import apply_stylesheet

from control.main_control import new_click, setting_click, about_click, reset_click, run_click
from gui.ui_main import TopBarParams, UI_Main
from var import screen

if __name__ == '__main__':
    mainApp = QApplication(sys.argv)

    UI = UI_Main()

    top_bar_params = TopBarParams(new_click, setting_click, about_click, reset_click, run_click)
    mainWin = UI.CreateMainWindow(screen, top_bar_params)

    apply_stylesheet(mainApp, theme='light_blue.xml')

    mainWin.show()

    sys.exit(mainApp.exec())
